package fnord.illuminati.action.actions;

import fnord.illuminati.action.AttackModifierAction;
import fnord.illuminati.card.groupcards.ConvenienceStores;
import fnord.illuminati.card.groupcards.Tabloids;
import fnord.illuminati.order.AttackOrder;
import fnord.illuminati.order.AttackType;

public class TabloidsAction implements AttackModifierAction {
	private static final long serialVersionUID = 1808561463067151144L;

	@Override
	public int doAttack(AttackOrder order) {
		if (order.getAttackType() == AttackType.CONTROL && order.getFrom() instanceof Tabloids && order.getTo() instanceof ConvenienceStores)
			return 3;
		else
			return 0;
	}

	@Override
	public int doDefend(AttackOrder order) {
		return 0;
	}
}
